If we have a resource base path for the application, set up an icon
theme search path based on it (within the default icon theme).
https://bugzilla.gnome.org/show_bug.cgi?id=722092
#include "gtkmain.h"
#include "gtkrecentmanager.h"
#include "gtkaccelmapprivate.h"
+#include "gtkicontheme.h"
#include "gtkbuilder.h"
#include "gtkintl.h"
if (base_path == NULL)
return;
+ /* Expand the icon search path */
+ {
+ GtkIconTheme *default_theme;
+ gchar *iconspath;
+
+ default_theme = gtk_icon_theme_get_default ();
+ iconspath = g_strconcat (base_path, "/icons", NULL);
+ gtk_icon_theme_add_resource_path (default_theme, iconspath);
+ g_free (iconspath);
+ }
+
/* Load the menus */
{
gchar *menuspath;